﻿@using FwProject.TypeNumber.Dto
@using FwProject.Core.TypeNumber
@model TypeNumberInfoDto
@{
    Layout = null;
}
<div class="modal-dialog">
    <div class="modal-content animated fadeIn">
        <form class="form-horizontal" action="/TypeNumber/EditTypeNumber?id=@Html.ViewContext.RouteData.Values["id"]" method="post" novalidate="novalidate" data-ajax="true" data-ajax-success="ReloadAjaxCallbackgoback" data-ajax-failure="FailureAjaxCallback" data-ajax-method="Post" role="form">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">修改型号信息</h4>
            </div>
            <div class="modal-body">
                <div class="form-body">
                    @Html.AntiForgeryToken()
                    @Html.TextBoxFor(o => o.FactoryinfoId, new { @class = "hidden" })
                    <div class="form-group">
                        @Html.LabelFor(o => o.Name, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            @Html.TextBoxFor(o => o.Name, new { @class = "form-control" })
                            @Html.ValidationMessageFor(o => o.Name)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(o => o.Readme, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            @Html.TextBoxFor(o => o.Readme, new { @class = "form-control" })
                            @Html.ValidationMessageFor(o => o.Readme)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(o => o.Count, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            @Html.TextBoxFor(o => o.Count, new { @class = "form-control" })
                            @Html.ValidationMessageFor(o => o.Count)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(o => o.Unit, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            <enums asp-enum="Model.Unit.GetType()" asp-valuetype="1" asp-name="Unit" asp-id="Unit" asp-value="@((int)Model.Unit)" class="form-control"></enums>
                            @Html.ValidationMessageFor(o => o.Unit)
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(o => o.IsActive, new { @class = "control-label col-md-3" })
                        <div class="col-md-6">
                            <BoolSelect asp-value="@Model.IsActive" asp-name="IsActive" class="form-control"></BoolSelect>
                            @Html.ValidationMessageFor(o => o.IsActive)
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="submit" class="btn btn-primary" data-loading-text="执行中...">保存</button>
            </div>
        </form>
    </div>
    <!-- /.modal-content -->
</div>



